.class abstract Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;
.super Ljava/lang/Object;
.source "InmobiAdaptor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x40a
    name = "AbstractInmobiListener"
.end annotation


# instance fields
.field final mAdaptor:Ljava/lang/ref/Reference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/Reference",
            "<",
            "Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;",
            ">;"
        }
    .end annotation
.end field

.field private final mIsInterstitial:Z


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;Z)V
    .locals 1
    .parameter "adaptor"
    .parameter "isInterstitial"

    .prologue
    .line 97
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 98
    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mAdaptor:Ljava/lang/ref/Reference;

    .line 99
    iput-boolean p2, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mIsInterstitial:Z

    .line 100
    return-void
.end method


# virtual methods
.method protected handleFailureCallback(Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V
    .locals 2
    .parameter "errorCode"

    .prologue
    .line 135
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Inmobi error code: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->handleFailureCallback(Ljava/lang/String;)V

    .line 136
    return-void
.end method

.method protected handleFailureCallback(Ljava/lang/String;)V
    .locals 5
    .parameter "causeOfFailure"

    .prologue
    .line 144
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;

    .line 145
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 146
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->access$300()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v1

    #getter for: Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->mTag:Ljava/lang/String;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->access$200(Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "Failed to receive Inmobi..."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 147
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    const-string v2, "inmobi"

    iget-boolean v3, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mIsInterstitial:Z

    invoke-interface {v1, v2, v3, p1}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V

    .line 149
    :cond_0
    return-void
.end method

.method protected handleInterstitialState(Z)V
    .locals 3
    .parameter "isShown"

    .prologue
    .line 119
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;

    .line 120
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 121
    if-eqz p1, :cond_1

    .line 122
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->shownFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 127
    :cond_0
    :goto_0
    return-void

    .line 124
    :cond_1
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->dismissedFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    goto :goto_0
.end method

.method protected handleSuccessCallback()V
    .locals 5

    .prologue
    .line 106
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;

    .line 107
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 108
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->access$100()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v1

    #getter for: Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->mTag:Ljava/lang/String;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->access$000(Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "Inmobi received..."

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 109
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    const-string v2, "inmobi"

    iget-boolean v3, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mIsInterstitial:Z

    invoke-interface {v1, v2, v3}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 111
    :cond_0
    return-void
.end method

.method protected triggerClickEvent()V
    .locals 4

    .prologue
    .line 155
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mAdaptor:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;

    .line 156
    .local v0, adaptor:Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->isStopped()Z

    move-result v1

    if-nez v1, :cond_0

    .line 157
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v1

    const-string v2, "inmobi"

    iget-boolean v3, p0, Lcom/burstly/lib/component/networkcomponent/inmobi/InmobiAdaptor$AbstractInmobiListener;->mIsInterstitial:Z

    invoke-interface {v1, v2, v3}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->adWasClicked(Ljava/lang/String;Z)V

    .line 159
    :cond_0
    return-void
.end method
